import { request } from '@/utils/request'
import { url } from './url'

export const uploadKnowledge = (formData) => request('post', `${url}/knowledge/upload`, formData)
export const getKnowledgeList = () => request('get', `${url}/knowledge`)
export const getKnowledgeStatistics = () => request('get', `${url}/knowledge/statistics`)
export const processKnowledgeDocument = (id) => request('post', `${url}/knowledge/${id}/process`)
export const deleteKnowledgeDocument = (id) => request('delete', `${url}/knowledge/${id}`)
